home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000021_icon-group-sender _Mon May 22 20:38:50 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  5KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 23 May 1995 08:52:35 MST
  2. To: icon-group-l@cs.arizona.edu
  3. Date: 22 May 1995 20:38:50 GMT
  4. From: Rick Riolo <rlriolo@umich.edu>
  5. Message-Id: <3pqsor$4fd@controversy.admin.lsa.umich.edu>
  6. Organization: Program for Study of Complex Systems (PSCS)
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: (no subject)
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. I am having a problem compiling with iconc (sometimes...).
  12. The uncompiled version of this app goes thru icont and runs 
  13. just fine on my hp.
  14. This same app also compiles under a sun/os using sun's cc.
  15. But on my hpux 9.05 (715/100,64M-RAM) system, its failing as follwos:
  16.  
  17. maria-rlr)time iconc -fa -p'-v' regress ../gpmain
  18. Translating to C:
  19. regress.icn:
  20. ./gpmain.icn:
  21. /s/users/rlr/GRASS/Icon/icon-gp-0.7/pop.icn:
  22. /s/users/rlr/GRASS/Icon/icon-gp-0.7/prog.icn:
  23. /s/users/rlr/GRASS/Icon/icon-gp-0.7/lang.icn:
  24. /s/users/rlr/GRASS/Icon/icon-gp-0.7/src.icn:
  25. /s/users/rlr/GRASS/Icon/icon-gp-0.7/rand.icn:
  26. /s/users/rlr/GRASS/Icon/icon-gp-0.7/Libes/adt_wl.icn:
  27. /s/users/rlr/GRASS/Icon/icon-gp-0.7/params.icn:
  28. /s/users/rlr/GRASS/Icon/icon-gp-0.7/fc.icn:
  29. /s/users/rlr/GRASS/Icon/icon-gp-0.7/profile.icn:
  30. /s/users/rlr/GRASS/Icon/icon-gp-0.7/Grammar/cfrule.icn:
  31. /s/users/rlr/GRASS/Icon/icon-gp-0.7/Grammar/lex.icn:
  32. /usr/local/Icon/ipl/procs/options.icn:
  33. /usr/local/Icon/ipl/procs/printf.icn:
  34. /s/users/rlr/GRASS/Icon/icon-gp-0.7/Grammar/cfnet.icn:
  35. /s/users/rlr/GRASS/Icon/icon-gp-0.7/Libes/adt_str.icn:
  36. /s/users/rlr/GRASS/Icon/icon-gp-0.7/Grammar/cfnode.icn:
  37. No errors; no warnings
  38. Compiling and linking C code:
  39. *** C compile and link failed ***
  40. 175.34u 1.20s 2:57.44 99.4%
  41. maria-rlr)
  42.  
  43. The -v'-p' to the hp's cc is supposed to have it
  44. emit verbose messages about what its doing. As you can
  45. see, there was no useful messages when it failed.
  46.  
  47. I have iconc -c and the files are:
  48. -rw-rw-r--   1 rlr      appl      957232 May 12 08:50 regress-x.c
  49. -rw-rw-r--   1 rlr      appl      123207 May 12 08:50 regress-x.h
  50. (the regress-x.* is just me putting them on the side...)
  51. Pretty big (by icon scales, I don't know if that is big or not,
  52. being an icon newbie).
  53.  
  54. I have plenty of filespace (3G) in the cwd and in /tmp and /usr/tmp .
  55.  
  56. A further complication: 
  57. Once time when I did this same command, it successfully compiled!
  58. No changes to the source, just ran iconc again.
  59. That time the -p'-v' did emit messages from hp's cc&friends.
  60. (So maybe I can use those commands to see what's going on...)
  61.  
  62. that suggests some resource-dependent problem, varying
  63. with when I try to to the iconc.  maybe...but which resource?
  64. (also, I'm the only one using it...)
  65.  
  66. A few questions:
  67. - is there any way I can get iconc to tell me what
  68.   cc and ld &etc commands its emitting (when it fails)?
  69. - is there any way to get better messages? 
  70.   (i tried the -v4 on the iconc above, but that
  71.   seems only to increase verbosity of icn->c part.
  72. - by default iconc was made to use hp's cc.
  73.   I have gcc.  Is there a way (short of remake of iconc)
  74.   to tell iconc to use gcc instead of cc?
  75. and
  76. - Any ideas what might be causing this?
  77.   eg maybe hp's cc is croaking on the big .c/.h files?
  78.   (I looked thru man cc, but didn't see anything...but
  79.    its long of course and I could have missed something)
  80.  
  81. thanks for any advice you can give.
  82.  - r
  83.  
  84. ---------------------
  85.  
  86. An addendum:
  87. I tried an iconc -c and got the classify.c/.h files
  88. as mentioned before.  (last time I did regress:
  89. classify is a similar app...differs by one file...
  90. that has been having the same iconc problem.)
  91.  
  92. then I use cpp,ccom and ld commands I got the one
  93. time iconc -fa -p'-v' regress ../gpmain worked
  94. (modified to compile classify):
  95.  
  96. maria-rlr)/lib/cpp classify.c /tmp/x -$ -D__hp9000s700 -D__hp9000s800
  97. -D__hppa -D__hpux -D__unix -D_PA_ RISC1_1
  98. maria-rlr)dir /tmp/x
  99. -rw-rw-r--   1 rlr      appl     1266167 May 12 14:02 /tmp/x
  100. maria-rlr)/lib/ccom /tmp/x classify.o
  101. -Oq00,al,ag,cn,Lm,sz,Ic,vo,lc,mf,Po,es,rs,sp,in,pi,fa,pe,Rr,Fl! -Ac
  102. maria-rlr)dir classify.o /tmp/x  
  103. -rw-rw-r--   1 rlr      appl     1266167 May 12 14:02 /tmp/x
  104. -rw-rw-r--   1 rlr      appl      623972 May 12 14:02 classify.o
  105. maria-rlr)/bin/ld /lib/crt0.o -u main -Fb /usr/lib/uccom
  106. -L/usr/lib/X11R5 -L/lib -o classify classify.o /usr/local/Icon/bin/rt.a
  107. -L/usr/local/Icon/bin/ -lXpm -lX11 -lm -lc
  108. maria-rlr)dir classify
  109. -rwxrwxr-x   1 rlr      appl     1085440 May 12 14:03 classify
  110. maria-rlr)
  111.  
  112. (some of the odd wrapping is just my mailer...
  113. I haven't looked at all the pars its sending to the cc parts...
  114. some look odd, eg -D__hp9000s700 -D__hp9000s800 but I don't
  115. know the hp cc compiler that well...)
  116.  
  117. At any rate,
  118. as you can see, the cpp output is in /tmp/x.
  119. There are no errors at any step, and when all 
  120. is done, the compiled classify runs!
  121.  
  122. I then immediately tried
  123.   iconc -fa classify ../gpmain
  124. and it fails again, with the same old (non-)message:
  125. ..
  126. No errors; no warnings
  127. Compiling and linking C code:
  128. *** C compile and link failed ***
  129. maria-rlr)
  130.  
  131. So....I am further puzzled by it all.
  132.  
  133. thanks for any suggested steps to take to 
  134. figure out what's going on.
  135.  
  136.  -r
  137.  
  138.  
  139. -- 
  140. Rick Riolo                       rlriolo@umich.edu
  141. Program for Study of Complex Systems (PSCS)
  142. 1071 Randall Lab     University of Michigan
  143. Ann Arbor MI 48109-1120
  144.  
  145.